// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'; // 引入ElementUI核心JS
import 'element-ui/lib/theme-chalk/index.css'; // 引入ElementUI核心样式
// 引入 axios
import axios from "axios";
// 配置基础路径
//axios.defaults.baseURL = "https://www.fastmock.site/mock/c8c7f487a69e7542c64025de50931389/pethome";
//全局属性配置，在任意组件内可以使用this.$http获取axios对象、
Vue.prototype.$http = axios;
// 告诉Vue我要使用ElementUI
Vue.use(ElementUI)
// 引入本地mock
import MockUser from './js/user/user.js'
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
